package cn.xzzz2020.XJynWeb.aop;

import net.sf.cglib.proxy.Enhancer;
import net.sf.cglib.proxy.MethodInterceptor;

/**
 * 创建动态代理对象
 * @author xzzz2020
 * @version 1.0
 * @date 2020/8/8 11:33
 */
public class ProxyCreator {

    public static Object createProxy(Class<?> targetClass, MethodInterceptor interceptor){
        return Enhancer.create(targetClass,interceptor);
    }
}
